1.Write a script that counts from 100 to 120 and assume these numbers represent kilometres. The script should convert each value to miles and display the kilometres and miles. 

2.Write a script that converts 24 hour time to 12 hour time. 

3.Here is a (dangerous) way to get input: 

var answer = window.prompt("Enter an integer value ","100");

var z;
if (answer != null)
 { z = eval(answer * answer);
   alert( answer + " * " + answer + " is " + z);
 }   


Use this to get an integer value from the user which represents degrees Fahrenheit. Convert this to Celsius and display it in an alert box. 

4.Now that your temperature conversion from the previous task works incorporate the script in a loop that continues until the user enters "no". The script should also write its output to the web page and not to an alert box. 

